package com.lzh.mapper;

import com.lzh.bean.*;
import com.lzh.query.SupplierQuotationQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface SupplierQuotationMapper {

    List<Map> query(SupplierQuotationQuery supplierQuotationQuery);

    List<Integer> queryByPid(int pid);

    int save(@Param("code") String subCode,@Param("pid") int pid,@Param("inquiryId") int inquiryId,@Param("id") int sid);

    Map queryById(int id);

    int saveSupplierQuotationCPXJ(SupplierQuotationCPXJ supplierQuotationCPXJ);

    int saveSupplierQuotationSWXJ(SupplierQuotationSWXJ supplierQuotationSWXJ);

    int saveSupplierQuotationTGXJ(SupplierQuotationTGXJ supplierQuotationTGXJ);


    int changeStatus(ChangeStatus changeStatus);

    int saveReason(SupplierQuotationRequest supplierQuotationRequest);

    String queryMaxCode();


    int queryBySubCode(String quoteSn);
}
